package org.xmdl.silk.interpreter;

import java.util.List;

import org.xmdl.silk.Method;
import org.xmdl.silk.ValueItem;

public class UnmatchedParameterException extends RuntimeException {

	/** serial id */
	private static final long serialVersionUID = -518082292390193872L;
	private final Method method;
	private final List<ValueItem> parameters;

	public UnmatchedParameterException(Method method,
			List<ValueItem> parameters) {
		super("parameters (" + parameters.size()
				+ ") do not match for method call:" + method);
		this.method = method;
		this.parameters = parameters;
	}

	public Method getMethod() {
		return method;
	}

	public List<ValueItem> getParameters() {
		return parameters;
	}
}
